home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global clickheretime, spacer, pathToMain, SelfRunning
- if SelfRunning <> 1 then
- set the timeoutScript to "continueWithoutClick"
- end if
- if clickheretime > 100 then
- set clickheretime to 0
- play frame "click here"
- end if
- set clickheretime to clickheretime + 1
- repeat with i = 2 to 5
- if rollOver(i) then
- puppetSprite(i, 1)
- set temp to the castNum of sprite i
- set the castNum of sprite i to the number of cast ("mainHigh" & i)
- updateStage()
- repeat while rollOver(i)
- if the mouseDown then
- exit repeat
- end if
- if not soundBusy(2) then
- set theme to pathToMain & "music" & spacer & "duhduh"
- sound playFile 2, theme
- end if
- if the timeoutLapsed > the timeoutLength then
- exit repeat
- end if
- puppetSprite(i, 0)
- end repeat
- exit repeat
- end if
- end repeat
- set the castNum of sprite i to temp
- updateStage()
- if not soundBusy(2) then
- set theme to pathToMain & "music" & spacer & "duhduh"
- sound playFile 2, theme
- end if
- go("loop")
- end
-